﻿// Decompiled with JetBrains decompiler
// Type: LayersParser.User_Controls.ParamConfigurator
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.OLPEditor.LayersParser.Resources;
using LayersParser.Objects;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.Layout;
using Tecnomatix.Engineering.Ui;


namespace LayersParser.User_Controls;

public class ParamConfigurator : UserControl
{
  private object parent;
  private List<Param> parameters = new List<Param>();
  private Param param = new Param();
  private IContainer components;
  private GroupBox gbTxObject;
  private Button button2;
  private Button button1;
  private CheckBox Showlist;
  private ListBox txTypesListBox;
  private System.Windows.Forms.ComboBox TxTypesCombo;
  private GroupBox gbString;
  private System.Windows.Forms.TextBox DefaulValueStr;
  private Button defaultBtn;
  private Button deleteBtn;
  private ListBox valuesListBox;
  private System.Windows.Forms.TextBox addEditBox;
  private Button addBtn;
  private GroupBox gbNumber;
  private TxNumericEditBoxCtrl defaultValue;
  private Label label3;
  private Label label2;
  private Label label1;
  private TxNumericEditBoxCtrl maxVal;
  private TxNumericEditBoxCtrl minVal;
  private ToolStrip toolStrip1;
  private ToolStripLabel toolStripLabel1;
  private ToolStripTextBox nameTextBox;
  private ToolStripLabel toolStripLabel2;
  private ToolStripComboBox typeComboBox;
  private GroupBox groupBox2;
  private GroupBox groupBox1;

  public ParamConfigurator()
  {
    this.InitializeComponent();
    this.SetComboBox();
  }

  public void ParamConfiguratorCtor(Param parameter) => this.InitializeComponents(parameter);

  public event ParamConfigurator.ValuesChangedEventHandler ValuesChanged;

  protected virtual void OnValuesChanged()
  {
    if (this.ValuesChanged == null)
      return;
    this.ValuesChanged();
  }

  public ToolStripTextBox TextBox
  {
    get => this.nameTextBox;
    set => this.nameTextBox = value;
  }

  public ListBox ValuesListBox => this.valuesListBox;

  public bool HasValues
  {
    get
    {
      bool hasValues = true;
      if (this.param.Type == "string" && this.valuesListBox.Items.Count == 0)
        hasValues = false;
      else if (this.param.Type == "TxObject" && this.txTypesListBox.Items.Count == 0)
        hasValues = false;
      else if (this.param == null)
        hasValues = false;
      return hasValues;
    }
  }

  public ToolStripComboBox ComboBox
  {
    get => this.typeComboBox;
    set => this.typeComboBox = value;
  }

  public Param Param
  {
    get => this.param;
    set => this.param = value;
  }

  public List<Param> Parameters
  {
    get => this.parameters;
    set => this.parameters = value;
  }

  public object Control
  {
    get => this.parent;
    set => this.parent = value;
  }

  private void AddChoice(object sender, EventArgs e)
  {
    if (this.addEditBox.Text.Trim().Length == 0)
      return;
    this.param.Choices.Add(this.addEditBox.Text);
    this.param.Choices = this.param.Choices;
    this.valuesListBox.Items.Add((object) this.addEditBox.Text);
    this.addEditBox.Clear();
    this.deleteBtn.Enabled = this.valuesListBox.SelectedItem != null;
    this.addBtn.Enabled = this.addEditBox.Text != "";
    this.OnValuesChanged();
  }

  private void DeleteChoice(object sender, EventArgs e)
  {
    if (this.valuesListBox.SelectedItem == null)
      return;
    if (this.param.DefaultValue == this.valuesListBox.SelectedItem.ToString())
    {
      this.DefaulValueStr.Text = "";
      this.param.DefaultValue = "";
    }
    this.param.Choices.RemoveAt(this.param.Choices.IndexOf(this.valuesListBox.SelectedItem.ToString()));
    this.valuesListBox.Items.RemoveAt(this.valuesListBox.SelectedIndex);
    this.param.Choices = this.param.Choices;
    this.deleteBtn.Enabled = this.valuesListBox.SelectedItem != null;
    this.OnValuesChanged();
  }

  private void DefaultValue(object sender, EventArgs e)
  {
    if (this.valuesListBox.SelectedItem == null)
      return;
    this.param.DefaultValue = this.valuesListBox.SelectedItem.ToString();
    this.DefaulValueStr.Text = this.param.DefaultValue;
  }

  private void NewType(object sender, EventArgs e)
  {
    if (this.typeComboBox.SelectedItem != null)
      this.param.Type = this.typeComboBox.SelectedItem.ToString();
    bool flag = true;
    if (this.param.Type == "string")
    {
      this.param.DefaultValue = this.param.MaxBound = this.param.MinBound = this.param.TxValidatorType = (string) null;
      if (this.param.TxTypes.Count > 0)
        this.param.TxTypes.RemoveRange(0, this.param.TxTypes.Count);
      this.param.TxTypes = this.param.TxTypes;
      this.gbNumber.Visible = false;
      this.gbString.Visible = true;
      this.gbTxObject.Visible = false;
      if (this.valuesListBox.Items.Count == 0)
        flag = false;
    }
    else if (this.param.Type == "int")
    {
      this.param.MaxLength = this.param.DefaultValue = this.param.TxValidatorType = (string) null;
      if (this.param.Choices.Count > 0)
        this.param.Choices.RemoveRange(0, this.param.Choices.Count);
      if (this.param.TxTypes.Count > 0)
        this.param.TxTypes.RemoveRange(0, this.param.TxTypes.Count);
      this.param.Choices = this.param.Choices;
      this.param.TxTypes = this.param.TxTypes;
      this.gbNumber.Visible = true;
      this.gbTxObject.Visible = false;
      this.gbString.Visible = false;
      this.maxVal.UseDecimalPlacesFromOption = false;
      this.minVal.UseDecimalPlacesFromOption = false;
      this.defaultValue.UseDecimalPlacesFromOption = false;
      this.maxVal.ValueType = (TxNumericEditValueType) 3;
      this.minVal.ValueType = (TxNumericEditValueType) 3;
      this.defaultValue.ValueType = (TxNumericEditValueType) 3;
      this.maxVal.Value = this.minVal.Value = this.defaultValue.Value = 0.0;
      this.param.DefaultValue = ((System.Windows.Forms.Control) this.defaultValue).Text;
      this.param.MaxBound = ((System.Windows.Forms.Control) this.maxVal).Text;
      this.param.MinBound = ((System.Windows.Forms.Control) this.minVal).Text;
    }
    else if (this.param.Type == "double")
    {
      this.param.MaxLength = this.param.DefaultValue = this.param.TxValidatorType = (string) null;
      if (this.param.Choices.Count > 0)
        this.param.Choices.RemoveRange(0, this.param.Choices.Count);
      if (this.param.TxTypes.Count > 0)
        this.param.TxTypes.RemoveRange(0, this.param.TxTypes.Count);
      this.param.Choices = this.param.Choices;
      this.param.TxTypes = this.param.TxTypes;
      this.gbNumber.Visible = true;
      this.gbTxObject.Visible = false;
      this.gbString.Visible = false;
      this.maxVal.ValueType = (TxNumericEditValueType) 0;
      this.minVal.ValueType = (TxNumericEditValueType) 0;
      this.defaultValue.ValueType = (TxNumericEditValueType) 0;
      this.maxVal.UseDecimalPlacesFromOption = true;
      this.minVal.UseDecimalPlacesFromOption = true;
      this.defaultValue.UseDecimalPlacesFromOption = true;
      this.maxVal.Value = this.minVal.Value = this.defaultValue.Value = 0.0;
      this.param.DefaultValue = ((System.Windows.Forms.Control) this.defaultValue).Text;
      this.param.MaxBound = ((System.Windows.Forms.Control) this.maxVal).Text;
      this.param.MinBound = ((System.Windows.Forms.Control) this.minVal).Text;
    }
    else if (this.param.Type == "TxObject")
    {
      this.gbString.Visible = false;
      this.gbNumber.Visible = false;
      this.gbTxObject.Visible = true;
      this.param.MaxLength = this.param.MaxBound = this.param.MinBound = this.param.DefaultValue = (string) null;
      if (this.param.Choices.Count > 0)
        this.param.Choices.RemoveRange(0, this.param.Choices.Count);
      this.param.Choices = this.param.Choices;
      if (this.txTypesListBox.Items.Count == 0)
        flag = false;
    }
    else
    {
      this.gbString.Visible = false;
      this.gbNumber.Visible = false;
      this.gbTxObject.Visible = false;
      flag = false;
    }
    foreach (System.Windows.Forms.Control control in (ArrangedElementCollection) this.Parent.Controls)
    {
      if (control.Name == "buttonOK" || control.Name == "buttonApply")
        control.Enabled = flag;
    }
  }

  private void Showlist_CheckedChanged(object sender, EventArgs e)
  {
    this.param.ShowList = this.Showlist.Checked.ToString();
  }

  private void AddType(object sender, EventArgs e)
  {
    this.param.TxTypes.Add(this.TxTypesCombo.SelectedItem.ToString());
    this.param.TxTypes = this.param.TxTypes;
    this.txTypesListBox.Items.Add((object) this.TxTypesCombo.SelectedItem.ToString());
    this.OnValuesChanged();
  }

  private void DeleteType(object sender, EventArgs e)
  {
    this.param.TxTypes.RemoveAt(this.param.TxTypes.IndexOf(this.txTypesListBox.SelectedItem.ToString()));
    this.txTypesListBox.Items.RemoveAt(this.txTypesListBox.SelectedIndex);
    this.OnValuesChanged();
  }

  private void MaxValueChanged(object sender, EventArgs e)
  {
    this.Checking();
    this.param.MaxBound = this.maxVal.Value.ToString();
  }

  private void MinValueChanged(object sender, EventArgs e)
  {
    this.Checking();
    this.param.MinBound = this.minVal.Value.ToString();
  }

  private void DefaultValueChanged(object sender, EventArgs e)
  {
    this.Checking();
    this.param.DefaultValue = this.defaultValue.Value.ToString();
  }

  private bool Checking()
  {
    bool flag = this.defaultValue.Value >= this.minVal.Value && this.defaultValue.Value <= this.maxVal.Value;
    foreach (System.Windows.Forms.Control control in (ArrangedElementCollection) this.Parent.Controls)
    {
      if (control.Name == "buttonOK" || control.Name == "buttonApply")
        control.Enabled = flag;
    }
    return true;
  }

  public void SetComboBox()
  {
    this.typeComboBox.Items.Add((object) "int");
    this.typeComboBox.Items.Add((object) "double");
    this.typeComboBox.Items.Add((object) "string");
    this.typeComboBox.Items.Add((object) "TxObject");
    this.gbString.Visible = false;
    this.gbNumber.Visible = false;
    this.gbTxObject.Visible = false;
    this.TxTypesCombo.Items.Add((object) "TxGripper");
    this.TxTypesCombo.Items.Add((object) "TxGun");
    this.TxTypesCombo.Items.Add((object) "TxServoGun");
    this.TxTypesCombo.Items.Add((object) "TxPaintGun");
    this.TxTypesCombo.Items.Add((object) "TxPneumaticServoGun");
    this.TxTypesCombo.Items.Add((object) "TxFrame");
    this.TxTypesCombo.Items.Add((object) "TxTool");
    this.TxTypesCombo.Items.Add((object) "TxWeldOperation");
    this.TxTypesCombo.Items.Add((object) "TxGenericRoboticOperation");
    this.TxTypesCombo.Items.Add((object) "TxRoboticSeamOperation");
    this.TxTypesCombo.Items.Add((object) "TxRoboticViaLocationOperation");
    this.TxTypesCombo.Items.Add((object) "TxWeldLocationOperation");
    this.TxTypesCombo.Items.Add((object) "TxGenericRoboticLocationOperation");
    this.TxTypesCombo.Items.Add((object) "TxPlcToRobotSignal");
    this.TxTypesCombo.Items.Add((object) "TxPlcFromRobotSignal");
  }

  private void InitializeComponents(Param parameter)
  {
    this.param = parameter;
    this.nameTextBox.Text = this.param.Name;
    this.typeComboBox.SelectedIndex = this.typeComboBox.FindString(this.param.Type);
    if (parameter.Type == "string")
    {
      this.gbNumber.Visible = false;
      this.gbString.Visible = true;
      this.gbTxObject.Visible = false;
      this.valuesListBox.Items.Clear();
      if (this.param.Choices.Count > 0)
      {
        foreach (object choice in this.param.Choices)
          this.valuesListBox.Items.Add(choice);
      }
      if (this.param.DefaultValue != null)
        this.DefaulValueStr.Text = this.param.DefaultValue;
    }
    else if (this.param.Type == "double")
    {
      this.gbNumber.Visible = true;
      this.gbString.Visible = false;
      this.gbTxObject.Visible = false;
      this.maxVal.ValueType = (TxNumericEditValueType) 0;
      this.minVal.ValueType = (TxNumericEditValueType) 0;
      this.defaultValue.ValueType = (TxNumericEditValueType) 0;
      this.maxVal.UseDecimalPlacesFromOption = true;
      this.minVal.UseDecimalPlacesFromOption = true;
      this.defaultValue.UseDecimalPlacesFromOption = true;
      if (this.param.MaxBound != null)
        this.maxVal.Value = double.Parse(this.param.MaxBound);
      if (this.param.MinBound != null)
        this.minVal.Value = double.Parse(this.param.MinBound);
      if (this.param.DefaultValue != null)
        this.defaultValue.Value = double.Parse(this.param.DefaultValue);
    }
    else if (this.param.Type == "int")
    {
      this.gbNumber.Visible = true;
      this.gbString.Visible = false;
      this.gbTxObject.Visible = false;
      this.maxVal.UseDecimalPlacesFromOption = false;
      this.minVal.UseDecimalPlacesFromOption = false;
      this.defaultValue.UseDecimalPlacesFromOption = false;
      this.maxVal.ValueType = (TxNumericEditValueType) 3;
      this.minVal.ValueType = (TxNumericEditValueType) 3;
      this.defaultValue.ValueType = (TxNumericEditValueType) 3;
      if (this.param.MaxBound != null)
        this.maxVal.Value = (double) long.Parse(this.param.MaxBound);
      if (this.param.MinBound != null)
        this.minVal.Value = (double) long.Parse(this.param.MinBound);
      if (this.param.DefaultValue != null)
        this.defaultValue.Value = (double) long.Parse(this.param.DefaultValue);
    }
    else if (this.param.Type == "TxObject")
    {
      this.gbTxObject.Visible = true;
      this.gbNumber.Visible = false;
      this.gbString.Visible = false;
      if (this.param.TxTypes.Count > 0)
      {
        foreach (object txType in this.param.TxTypes)
          this.txTypesListBox.Items.Add(txType);
      }
    }
    this.deleteBtn.Enabled = this.valuesListBox.SelectedItem != null;
    this.addBtn.Enabled = this.addEditBox.Text != "";
    this.defaultBtn.Enabled = this.valuesListBox.SelectedItem != null;
  }

  private void valuesListBox_SelectedIndexChanged(object sender, EventArgs e)
  {
    this.deleteBtn.Enabled = this.valuesListBox.SelectedItem != null;
    this.defaultBtn.Enabled = this.valuesListBox.SelectedItem != null;
  }

  private void addEditBox_TextChanged(object sender, EventArgs e)
  {
    this.addBtn.Enabled = this.addEditBox.Text != "";
  }

  private void NameChanged(object sender, EventArgs e) => this.param.Name = this.nameTextBox.Text;

  private void typeComboBox_KeyDown(object sender, KeyEventArgs e) => e.SuppressKeyPress = true;

  private void keyEventValidate(object sender, KeyEventArgs e) => this.Checking();

  private void keyPressEventValidate(object sender, KeyPressEventArgs e) => this.Checking();

  protected override void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    this.gbTxObject = new GroupBox();
    this.groupBox2 = new GroupBox();
    this.TxTypesCombo = new System.Windows.Forms.ComboBox();
    this.button1 = new Button();
    this.button2 = new Button();
    this.Showlist = new CheckBox();
    this.txTypesListBox = new ListBox();
    this.gbNumber = new GroupBox();
    this.defaultValue = new TxNumericEditBoxCtrl();
    this.label3 = new Label();
    this.label2 = new Label();
    this.label1 = new Label();
    this.maxVal = new TxNumericEditBoxCtrl();
    this.minVal = new TxNumericEditBoxCtrl();
    this.gbString = new GroupBox();
    this.DefaulValueStr = new System.Windows.Forms.TextBox();
    this.defaultBtn = new Button();
    this.groupBox1 = new GroupBox();
    this.addEditBox = new System.Windows.Forms.TextBox();
    this.addBtn = new Button();
    this.deleteBtn = new Button();
    this.valuesListBox = new ListBox();
    this.toolStrip1 = new ToolStrip();
    this.toolStripLabel1 = new ToolStripLabel();
    this.nameTextBox = new ToolStripTextBox();
    this.toolStripLabel2 = new ToolStripLabel();
    this.typeComboBox = new ToolStripComboBox();
    this.gbTxObject.SuspendLayout();
    this.groupBox2.SuspendLayout();
    this.gbNumber.SuspendLayout();
    this.gbString.SuspendLayout();
    this.groupBox1.SuspendLayout();
    this.toolStrip1.SuspendLayout();
    this.SuspendLayout();
    this.gbTxObject.Controls.Add((System.Windows.Forms.Control) this.groupBox2);
    this.gbTxObject.Controls.Add((System.Windows.Forms.Control) this.button2);
    this.gbTxObject.Controls.Add((System.Windows.Forms.Control) this.Showlist);
    this.gbTxObject.Controls.Add((System.Windows.Forms.Control) this.txTypesListBox);
    this.gbTxObject.Location = new Point(3, 30);
    this.gbTxObject.Name = "gbTxObject";
    this.gbTxObject.Size = new Size(345, 170);
    this.gbTxObject.TabIndex = 11;
    this.gbTxObject.TabStop = false;
    this.gbTxObject.Text = "Value expression";
    this.groupBox2.Controls.Add((System.Windows.Forms.Control) this.TxTypesCombo);
    this.groupBox2.Controls.Add((System.Windows.Forms.Control) this.button1);
    this.groupBox2.Location = new Point(193, 16 /*0x10*/);
    this.groupBox2.Margin = new Padding(2, 2, 2, 2);
    this.groupBox2.Name = "groupBox2";
    this.groupBox2.Padding = new Padding(2, 2, 2, 2);
    this.groupBox2.Size = new Size(140, 80 /*0x50*/);
    this.groupBox2.TabIndex = 7;
    this.groupBox2.TabStop = false;
    this.groupBox2.Text = "TxTypes";
    this.TxTypesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
    this.TxTypesCombo.FormattingEnabled = true;
    this.TxTypesCombo.Location = new Point(15, 16 /*0x10*/);
    this.TxTypesCombo.Name = "TxTypesCombo";
    this.TxTypesCombo.Size = new Size(110, 21);
    this.TxTypesCombo.TabIndex = 0;
    this.button1.Location = new Point(15, 43);
    this.button1.Name = "button1";
    this.button1.Size = new Size(110, 23);
    this.button1.TabIndex = 5;
    this.button1.Text = LayersParserStringTable.ADD_LABEL;
    this.button1.UseVisualStyleBackColor = true;
    this.button1.Click += new EventHandler(this.AddType);
    this.button2.Location = new Point(204, 102);
    this.button2.Name = "button2";
    this.button2.Size = new Size(110, 23);
    this.button2.TabIndex = 6;
    this.button2.Text = LayersParserStringTable.DELETE_LABEL;
    this.button2.UseVisualStyleBackColor = true;
    this.button2.Click += new EventHandler(this.DeleteType);
    this.Showlist.AutoSize = true;
    this.Showlist.Location = new Point(11, 136);
    this.Showlist.Name = "Showlist";
    this.Showlist.Size = new Size(71, 17);
    this.Showlist.TabIndex = 3;
    this.Showlist.Text = LayersParserStringTable.SHOWLIST_LABEL;
    this.Showlist.UseVisualStyleBackColor = true;
    this.Showlist.CheckedChanged += new EventHandler(this.Showlist_CheckedChanged);
    this.txTypesListBox.FormattingEnabled = true;
    this.txTypesListBox.Location = new Point(11, 17);
    this.txTypesListBox.Name = "txTypesListBox";
    this.txTypesListBox.Size = new Size(175, 108);
    this.txTypesListBox.TabIndex = 2;
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.defaultValue);
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.label3);
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.label2);
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.label1);
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.maxVal);
    this.gbNumber.Controls.Add((System.Windows.Forms.Control) this.minVal);
    this.gbNumber.Location = new Point(5, 30);
    this.gbNumber.Name = "gbNumber";
    this.gbNumber.Size = new Size(343, 170);
    this.gbNumber.TabIndex = 12;
    this.gbNumber.TabStop = false;
    this.gbNumber.Text = "Values";
    this.defaultValue.BorderStyle = BorderStyle.Fixed3D;
    ((System.Windows.Forms.Control) this.defaultValue).Location = new Point(68, 31 /*0x1F*/);
    this.defaultValue.LowerBound = -7.92281525142643E+18;
    ((System.Windows.Forms.Control) this.defaultValue).Name = "defaultValue";
    this.defaultValue.ReadOnly = false;
    ((System.Windows.Forms.Control) this.defaultValue).Size = new Size(142, 20);
    this.defaultValue.StepSize = 1.0;
    ((System.Windows.Forms.Control) this.defaultValue).TabIndex = 9;
    this.defaultValue.TextAlign = HorizontalAlignment.Left;
    this.defaultValue.ThousandsSeparator = false;
    this.defaultValue.UpperBound = 7.92281525142643E+18;
    this.defaultValue.UseDecimalPlacesFromOption = true;
    this.defaultValue.Value = 0.0;
    this.defaultValue.ValueType = (TxNumericEditValueType) 0;
    this.defaultValue.ValueChanged += new EventHandler(this.DefaultValueChanged);
    ((System.Windows.Forms.Control) this.defaultValue).KeyDown += new KeyEventHandler(this.keyEventValidate);
    ((System.Windows.Forms.Control) this.defaultValue).KeyPress += new KeyPressEventHandler(this.keyPressEventValidate);
    ((System.Windows.Forms.Control) this.defaultValue).KeyUp += new KeyEventHandler(this.keyEventValidate);
    this.label3.AutoSize = true;
    this.label3.Location = new Point(9, 30);
    this.label3.Name = "label3";
    this.label3.Size = new Size(44, 13);
    this.label3.TabIndex = 8;
    this.label3.Text = "Default ";
    this.label2.AutoSize = true;
    this.label2.Location = new Point(9, 101);
    this.label2.Name = "label2";
    this.label2.Size = new Size(54, 13);
    this.label2.TabIndex = 3;
    this.label2.Text = "Maximum ";
    this.label1.AutoSize = true;
    this.label1.Location = new Point(9, 65);
    this.label1.Name = "label1";
    this.label1.Size = new Size(48 /*0x30*/, 13);
    this.label1.TabIndex = 2;
    this.label1.Text = "Minimum";
    this.maxVal.BorderStyle = BorderStyle.Fixed3D;
    ((System.Windows.Forms.Control) this.maxVal).Location = new Point(68, 101);
    this.maxVal.LowerBound = -7.92281525142643E+18;
    ((System.Windows.Forms.Control) this.maxVal).Name = "maxVal";
    this.maxVal.ReadOnly = false;
    ((System.Windows.Forms.Control) this.maxVal).Size = new Size(142, 20);
    this.maxVal.StepSize = 1.0;
    ((System.Windows.Forms.Control) this.maxVal).TabIndex = 1;
    this.maxVal.TextAlign = HorizontalAlignment.Left;
    this.maxVal.ThousandsSeparator = false;
    this.maxVal.UpperBound = 7.92281525142643E+18;
    this.maxVal.UseDecimalPlacesFromOption = true;
    this.maxVal.Value = 0.0;
    this.maxVal.ValueType = (TxNumericEditValueType) 0;
    this.maxVal.ValueChanged += new EventHandler(this.MaxValueChanged);
    ((System.Windows.Forms.Control) this.maxVal).KeyDown += new KeyEventHandler(this.keyEventValidate);
    ((System.Windows.Forms.Control) this.maxVal).KeyPress += new KeyPressEventHandler(this.keyPressEventValidate);
    ((System.Windows.Forms.Control) this.maxVal).KeyUp += new KeyEventHandler(this.keyEventValidate);
    this.minVal.BorderStyle = BorderStyle.Fixed3D;
    ((System.Windows.Forms.Control) this.minVal).Location = new Point(68, 65);
    this.minVal.LowerBound = -7.92281525142643E+18;
    ((System.Windows.Forms.Control) this.minVal).Name = "minVal";
    this.minVal.ReadOnly = false;
    ((System.Windows.Forms.Control) this.minVal).Size = new Size(142, 20);
    this.minVal.StepSize = 1.0;
    ((System.Windows.Forms.Control) this.minVal).TabIndex = 0;
    this.minVal.TextAlign = HorizontalAlignment.Left;
    this.minVal.ThousandsSeparator = false;
    this.minVal.UpperBound = 7.92281525142643E+18;
    this.minVal.UseDecimalPlacesFromOption = true;
    this.minVal.Value = 0.0;
    this.minVal.ValueType = (TxNumericEditValueType) 0;
    this.minVal.ValueChanged += new EventHandler(this.MinValueChanged);
    ((System.Windows.Forms.Control) this.minVal).KeyDown += new KeyEventHandler(this.keyEventValidate);
    ((System.Windows.Forms.Control) this.minVal).KeyPress += new KeyPressEventHandler(this.keyPressEventValidate);
    ((System.Windows.Forms.Control) this.minVal).KeyUp += new KeyEventHandler(this.keyEventValidate);
    this.gbString.Controls.Add((System.Windows.Forms.Control) this.DefaulValueStr);
    this.gbString.Controls.Add((System.Windows.Forms.Control) this.defaultBtn);
    this.gbString.Controls.Add((System.Windows.Forms.Control) this.groupBox1);
    this.gbString.Controls.Add((System.Windows.Forms.Control) this.deleteBtn);
    this.gbString.Controls.Add((System.Windows.Forms.Control) this.valuesListBox);
    this.gbString.Location = new Point(3, 30);
    this.gbString.Name = "gbString";
    this.gbString.Size = new Size(343, 170);
    this.gbString.TabIndex = 13;
    this.gbString.TabStop = false;
    this.gbString.Text = "Values";
    this.DefaulValueStr.Location = new Point(12, 139);
    this.DefaulValueStr.Name = "DefaulValueStr";
    this.DefaulValueStr.ReadOnly = true;
    this.DefaulValueStr.Size = new Size(187, 20);
    this.DefaulValueStr.TabIndex = 13;
    this.defaultBtn.Location = new Point(223, 136);
    this.defaultBtn.Name = "defaultBtn";
    this.defaultBtn.Size = new Size(100, 23);
    this.defaultBtn.TabIndex = 4;
    this.defaultBtn.Text = "Set as Default ";
    this.defaultBtn.UseVisualStyleBackColor = true;
    this.defaultBtn.Click += new EventHandler(this.DefaultValue);
    this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.addEditBox);
    this.groupBox1.Controls.Add((System.Windows.Forms.Control) this.addBtn);
    this.groupBox1.Location = new Point(214, 13);
    this.groupBox1.Margin = new Padding(2, 2, 2, 2);
    this.groupBox1.Name = "groupBox1";
    this.groupBox1.Padding = new Padding(2, 2, 2, 2);
    this.groupBox1.Size = new Size(118, 72);
    this.groupBox1.TabIndex = 14;
    this.groupBox1.TabStop = false;
    this.groupBox1.Text = "New item";
    this.addEditBox.Location = new Point(9, 16 /*0x10*/);
    this.addEditBox.Name = "addEditBox";
    this.addEditBox.Size = new Size(101, 20);
    this.addEditBox.TabIndex = 1;
    this.addEditBox.TextChanged += new EventHandler(this.addEditBox_TextChanged);
    this.addBtn.Location = new Point(9, 39);
    this.addBtn.Name = "addBtn";
    this.addBtn.Size = new Size(100, 23);
    this.addBtn.TabIndex = 0;
    this.addBtn.Text = LayersParserStringTable.ADD_LABEL;
    this.addBtn.UseVisualStyleBackColor = true;
    this.addBtn.Click += new EventHandler(this.AddChoice);
    this.deleteBtn.Location = new Point(223, 91);
    this.deleteBtn.Name = "deleteBtn";
    this.deleteBtn.Size = new Size(100, 23);
    this.deleteBtn.TabIndex = 3;
    this.deleteBtn.Text = LayersParserStringTable.DELETE_LABEL;
    this.deleteBtn.UseVisualStyleBackColor = true;
    this.deleteBtn.Click += new EventHandler(this.DeleteChoice);
    this.valuesListBox.FormattingEnabled = true;
    this.valuesListBox.Location = new Point(12, 17);
    this.valuesListBox.Name = "valuesListBox";
    this.valuesListBox.Size = new Size(187, 108);
    this.valuesListBox.TabIndex = 2;
    this.valuesListBox.SelectedIndexChanged += new EventHandler(this.valuesListBox_SelectedIndexChanged);
    this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden;
    this.toolStrip1.ImageScalingSize = new Size(20, 20);
    this.toolStrip1.Items.AddRange(new ToolStripItem[4]
    {
      (ToolStripItem) this.toolStripLabel1,
      (ToolStripItem) this.nameTextBox,
      (ToolStripItem) this.toolStripLabel2,
      (ToolStripItem) this.typeComboBox
    });
    this.toolStrip1.Location = new Point(0, 0);
    this.toolStrip1.Name = "toolStrip1";
    this.toolStrip1.RenderMode = ToolStripRenderMode.System;
    this.toolStrip1.Size = new Size(390, 25);
    this.toolStrip1.TabIndex = 15;
    this.toolStrip1.Text = "toolStrip1";
    this.toolStripLabel1.Name = "toolStripLabel1";
    this.toolStripLabel1.Size = new Size(39, 22);
    this.toolStripLabel1.Text = LayersParserStringTable.NAME_LABEL;
    this.nameTextBox.Name = "nameTextBox";
    this.nameTextBox.Size = new Size(100, 25);
    this.nameTextBox.TextChanged += new EventHandler(this.NameChanged);
    this.toolStripLabel2.Name = "toolStripLabel2";
    this.toolStripLabel2.Size = new Size(31 /*0x1F*/, 22);
    this.toolStripLabel2.Text = LayersParserStringTable.TYPE_LABEL;
    this.typeComboBox.Name = "typeComboBox";
    this.typeComboBox.Size = new Size(121, 25);
    this.typeComboBox.Text = "Parameter type";
    this.typeComboBox.SelectedIndexChanged += new EventHandler(this.NewType);
    this.typeComboBox.KeyDown += new KeyEventHandler(this.typeComboBox_KeyDown);
    this.AutoScaleDimensions = new SizeF(6f, 13f);
    this.AutoScaleMode = AutoScaleMode.Font;
    this.Controls.Add((System.Windows.Forms.Control) this.toolStrip1);
    this.Controls.Add((System.Windows.Forms.Control) this.gbString);
    this.Controls.Add((System.Windows.Forms.Control) this.gbTxObject);
    this.Controls.Add((System.Windows.Forms.Control) this.gbNumber);
    this.MaximumSize = new Size(700, 500);
    this.MinimumSize = new Size(390, 200);
    this.Name = nameof (ParamConfigurator);
    this.Size = new Size(390, 220);
    this.gbTxObject.ResumeLayout(false);
    this.gbTxObject.PerformLayout();
    this.groupBox2.ResumeLayout(false);
    this.gbNumber.ResumeLayout(false);
    this.gbNumber.PerformLayout();
    this.gbString.ResumeLayout(false);
    this.gbString.PerformLayout();
    this.groupBox1.ResumeLayout(false);
    this.groupBox1.PerformLayout();
    this.toolStrip1.ResumeLayout(false);
    this.toolStrip1.PerformLayout();
    this.ResumeLayout(false);
    this.PerformLayout();
  }

  public delegate void ValuesChangedEventHandler();
}
